package elEMAS.impl;

public class Tests {
    public static void main(String[] args) {
        System.out.println("Tests started");
        System.out.println();
        int[] result;
        
        result = elEmasAgent.calculateEnergyToTransfer(5, 5, 4, 1);
        assert result[0] == 2;
        assert result[1] == 2;
        result = elEmasAgent.calculateEnergyToTransfer(3, 3, 4, 1);
        assert result[0] == 3;
        assert result[1] == 1;
        
        result = elEmasAgent.calculateEnergyToTransfer(5, 4, 4, 1);
        assert result[0] == 3;
        assert result[1] == 1;
        
        result = elEmasAgent.calculateEnergyToTransfer(10, 8, 4, 1);
        assert result[0] == 1;
        assert result[1] == 3;
        
        assert false : "Tests passed";
        System.out.println("ASSERTIONS NOT ENABLED !");
    }
}
